import request from '@/utils/request'

export const getDetail = (id) => {
  return request({
    url: '/goods',
    data: {
      id
    }
  })
}

export const getHotGoodsAPI = ({ id, type, limit = 3 }) => {
  return request({
    url:'/goods/hot',
    data:{
      id, 
      type, 
      limit
    }
  })
}